import multer from "multer";
// 设置存储配置
const storage = multer.diskStorage({
    destination: (req, file, cb) => {
        // console.log(req)
        cb(null, './public/uploads') // 确保这个文件夹已经存在
    },
    filename: (req, file, cb) => {
        cb(null, file.originalname)
    }
})
export const upload = multer({ storage });